var globalData = {
	server:"http://localhost:8080/g4/",
	pre:"http://localhost:8080/g4/",
	setUserInfo:function (uid,uname,roleNames){
		sessionStorage.setItem("uid",uid);
		sessionStorage.setItem("uname",uname);
		sessionStorage.setItem("roleNames",roleNames);	
	},
	getCurUid: function (){
		return sessionStorage.getItem("uid");
	},
	getCurUName:function (){
		return sessionStorage.getItem("uname");
	},
	getCurRoleNames:function (){
		var rs = sessionStorage.getItem("roleNames");
		var arr = rs.split(",");
		var data = "[";
		for(var i=0;i<arr.length;i++){
			arr[i]= "\'"+arr[i]+"\'"; 
		}		
		return eval("["+arr.join()+"]");		
	}
};
document.write('<link rel="stylesheet" href="'+globalData.pre+'css/x-admin.css" type="text/css"/>');
document.write('<script src="'+globalData.pre+'lib/layui/layui.js"></script>');
document.write('<script type="text/javascript" src="'+globalData.pre+'js/x-layui.js" ></script>');
document.write('<script type="text/javascript" src="'+globalData.pre+'js/x-admin.js" ></script>');



